package java2015096;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		String choice = sc.nextLine();
		int x = choice2Int(choice);
		switch (x) {
		case 1:
			int i = sc.nextInt();
			fib(i);
			break;
		case 2:
			int i = sc.nextInt();
			sort(i);
			break;
		case 3:
			int i = sc.nextInt();
			search(i);
			break;
		case 4:
			String id = sc.nextLine();
			getBirthDate(id);
			break;
		default:
			break;
		}
		

	}

	
	private static String getBirthDate(String id) {
		String year=id.substring(6,10);
		String month=id.substring(10,12);
		String day=id.substring(12,14);
		return year+"-"+month+"-"+day;
	}


	private static void search(int i) {
		// TODO Auto-generated method stub
		
	}

	private static void sort(int i) {
		// TODO Auto-generated method stub
		
	}

	private static void fib(int i) {
		// TODO Auto-generated method stub
		
	}

	private static int choice2Int(String choice) {
		if(choice.equals("fib"))
			return 1;
		if(choice.equals("sort"))
			return 2;
		if(choice.equals("search"))
			return 3;
		if(choice.equals("getBirthDate"))
			return 4;
		return ;
	}


	private static int choice(String choice) {
		// TODO Auto-generated method stub
		return 0;
	}

}
